package com.docking.heylo.dao.mapper;

import com.docking.heylo.dao.entity.SysRoleResources;
import com.docking.heylo.dao.entity.SysRoleResourcesExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface SysRoleResourcesMapper {
    long countByExample(SysRoleResourcesExample example);

    int deleteByExample(SysRoleResourcesExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SysRoleResources record);

    int insertSelective(SysRoleResources record);

    List<SysRoleResources> selectByExample(SysRoleResourcesExample example);

    SysRoleResources selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SysRoleResources record, @Param("example") SysRoleResourcesExample example);

    int updateByExample(@Param("record") SysRoleResources record, @Param("example") SysRoleResourcesExample example);

    int updateByPrimaryKeySelective(SysRoleResources record);

    int updateByPrimaryKey(SysRoleResources record);

    void batchDelByPrimaryKey(@Param("delResource") List<SysRoleResources> delResource);

    List<Map<String,Object>> resourcesByURoleId(@Param("roleId") Integer roleId);


    List<Map<String, Object>> resourcesByURoleId2(@Param("roleId") Integer roleId);
}